<!--
 * @Author: 码上talk|RC/3189482282@qq.com
 * @Date: 2022-02-15 09:43:58
 * @LastEditTime: 2022-02-15 10:47:26
 * @LastEditors: 码上talk|RC
 * @Description: 
 * @FilePath: /ma-distributor/pages/h5/index.vue
-->
<template>
  <view class="h5">
    <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  </view>
</template>

<script>
import { buildStrParams } from '@/libs/http';
export default {
  data () {
    return {
      url: '',
      webviewStyles: {
        progress: {
          color: '#FF3333'
        }
      }
    }
  },
  onLoad (params) {
    const { url, q, codeUrl } = params;
    this.url = url + (q ? buildStrParams(JSON.parse(q)) : '');
    if(codeUrl){
      this.url = decodeURIComponent(codeUrl)
    }
  }
}
</script>